function e(e, r) {
    if (!(e instanceof r)) throw new TypeError("Cannot call a class as a function");
}

var r = function() {
    function e(e, r) {
        for (var t = 0; t < r.length; t++) {
            var n = r[t];
            n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), 
            Object.defineProperty(e, n.key, n);
        }
    }
    return function(r, t, n) {
        return t && e(r.prototype, t), n && e(r, n), r;
    };
}(), t = function() {
    function t(r) {
        e(this, t), this.props = r || {}, this.source = wx || this.props.source;
    }
    return r(t, [ {
        key: "get",
        value: function(e) {
            var r = this.source, t = r.getStorageSync(e + "__expires__") || 0;
            {
                if (!(Date.now() >= t)) return r.getStorageSync(e);
                this.remove(e);
            }
        }
    }, {
        key: "set",
        value: function(e, r) {
            var t = this.source;
            return console.log("......" + t), t.setStorageSync(e, r), r;
        }
    }, {
        key: "remove",
        value: function(e) {
            var r = this.source;
            r.removeStorageSync(e), r.removeStorageSync(e + "__expires__");
        }
    } ]), t;
}();

module.exports = new t();